package main

import (
	"time"
	"fmt"
)

func main() {
	fmt.Println("aaaa")
	 go aa()
	time.Sleep(10)
	fmt.Println("bbb")
	ch := make(chan int,1)
	go bb(ch)
	time.Sleep(time.Second)
	ch<-3
	time.Sleep(time.Second)
	fmt.Println("main end")
}
func aa()  {
	time.Sleep(1000000)
	fmt.Println("Ccc1")
}
func bb(ch chan int)  {
	fmt.Println("waiting get ")
	fmt.Println("get ",<-ch)
	strs := []string{"12asdf", "asfdsf"}
	ina :=&2
	fmt.Println(strs)
	ch <- ina
	fmt.Println("send 1")
	ch <- 2
	fmt.Println("send 2")
	fmt.Println(<-ch)
	fmt.Println(<-ch)
}

func fibonacci(aa int) int  {
	x,y:=0 ,1
	for i:=0;i< aa;i++  {
		x,y=y,x+y
	}
	return y
	
}